<!DOCTYPE html>
<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <title>QBasic快速开发框架</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="/plugins/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="/plugins/font-awesome/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/plugins/AdminLTE/css/AdminLTE.css"/>
    <link rel="stylesheet" href="/css/common.css"/>
    <link rel="stylesheet" href="/css/index.css"/>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper" id="mainContainer">
    <!-- 头部导航栏 -->
    <header class="main-header">
        <a href="/" class="logo">
            <span class="logo-mini"><b>QB</b></span>
            <span class="logo-lg"><b>QBasic</b></span>
        </a>

        <nav class="navbar navbar-static-top" role="navigation">
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">导航栏切换</span>
            </a>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li><a href="#" class="nohover">
                        <i class="fa fa-user"></i>
                        <span th:text="${userName}"/></a></li>
                    <li><a href="/"><i class="fa fa-home icon-padding"></i>首页</a></li>
                    <li><a id="changePass" href="/changePass"><i class="fa fa-lock icon-padding"></i>修改密码</a></li>
                    <li><a href="/logout"><i class="fa fa-sign-out icon-padding"></i>退出</a></li>
                </ul>
            </div>
        </nav>
    </header>

    <!-- 导航菜单 -->
    <aside class="main-sidebar">
        <section class="sidebar">
            <ul class="sidebar-menu">
                <li class="treeview" th:each="menuInfo:${menuList}">
                    <a href="#">
                        <i th:class="${menuInfo.parentMenu.iconClass}"></i>
                        <span th:text="${menuInfo.parentMenu.name}"></span>
                        <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu">
                        <li th:each="subMenu:${menuInfo.subMenuList}">
                            <a th:href="${subMenu.url}">
                                <i th:class="${subMenu.iconClass}"></i>
                                <span th:text="${subMenu.name}"
                                      th:class="${#strings.isEmpty(subMenu.iconClass)}?'blank-icon'"></span>
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </section>
    </aside>

    <!-- 路径导航 -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <ol class="breadcrumb">
                <li>
                    <i class="fa fa-home"></i>
                    首页
                </li>
                <li class="active">
                    <a id="navUrl" href="/readme">Readme</a>
                </li>
                <li id="navItem" class="active"></li>
            </ol>
        </section>

        <!-- 主界面 -->
        <section class="content">
            <iframe scrolling="auto" frameborder="0" class="main"
                    src="/readme" id="main" name="main"></iframe>
        </section>

    </div>

    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            Version 1.0.0
        </div>
        Copyright &copy; 2018 <a href="/">新疆华域卓信科技股份有限公司</a>. All rights
        reserved.
    </footer>

</div>

<script src="/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="/plugins/jQuery-slimScroll-1.3.8/jquery.slimscroll.min.js"></script>
<script src="/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="/plugins/vue/vue.min.js"></script>
<script src="/plugins/AdminLTE/js/app.js"></script>
</body>
</html>
